<template>
  <div class="header">
    <img class="header-logo" @click="login" src="http://athena10:3019/Content/images/002.png"/>
  </div>
</template>

<script>
// import axios from 'axios'
export default {
  name: 'BodyHeader',
  methods: {
    login() {
      // axios.post("/api/test").then(response => {
      //     if (response.data) {
      //       console.log(response.data)
      //       alert(response.data.name)
      //   }
      // })
      this.axios.post('api/test').then((response)=>{
        if (response.data){
          console.log(response.data)
          alert(response.data.name)
        }
      }).catch((response)=>{
        console.log(response);
      })
    },
  }
}
</script>

<style lang='stylus' scoped>
	.header
		background-color:rgb(28, 119, 172)
		height:.7rem
		.header-logo
			float:left
</style>
